package com.fooddelivery.service;

import com.fooddelivery.dao.RestaurantDAO;
import com.fooddelivery.model.Restaurant;

import java.util.List;

public class RestaurantService {
    private RestaurantDAO restaurantDAO = new RestaurantDAO();

    public List<Restaurant> getAllRestaurants() {
        return restaurantDAO.getAllRestaurants();
    }

    public Restaurant getRestaurantById(int id) {
        return restaurantDAO.getRestaurantById(id);
    }
}
